﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public partial class home : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            
            connection ketnoi = new connection();
            ketnoi.Open();
            DataSet ds = new DataSet();
            string sql = "SELECT * FROM SANPHAM";
            repeater.DataSource = ketnoi.Ds_table(ds,sql, "ACCOUNT");
            repeater.DataBind();
            ketnoi.Close();

            

        }
    }
    public void ImageButton1_Click(object sender, EventArgs e)
    {
        ImageButton image = (ImageButton)sender;
        String ProductID = image.CommandArgument;

        Response.Redirect("Muahang.aspx?sanpham=" + ProductID);
    }
   
}